home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / gnu / djgpp / contrib / dvx / demos / xeyes / eyesp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-15  |  1.5 KB  |  61 lines

  1. /*
  2. * $XConsortium: EyesP.h,v 1.8 89/07/21 13:49:00 jim Exp $
  3. */
  4.  
  5. #ifndef _EyesP_h
  6. #define _EyesP_h
  7.  
  8. #include "Eyes.h"
  9. #include <X11/CoreP.h>
  10. #include "transform.h"
  11.  
  12. #define SEG_BUFF_SIZE        128
  13.  
  14. /* New fields for the eyes widget instance record */
  15. typedef struct {
  16.      Pixel        puppixel;    /* foreground pixel */
  17.      Pixel        outline;    /* outline pixel */
  18.      Pixel        center;        /* inside pixel */
  19.      GC        outGC;        /* pointer to GraphicsContext */
  20.      GC        pupGC;        /* pointer to GraphicsContext */
  21.      GC        centerGC;    /* pointer to GraphicsContext */
  22. #ifdef SHAPE
  23.      GC        shapeGC;    /* pointer to GraphicsContext */
  24. #endif
  25. /* start of graph stuff */
  26.      int        backing_store;    /* backing store variety */
  27.      Boolean    reverse_video;    /* swap fg and bg pixels */
  28. #ifdef SHAPE
  29.      Boolean    shape_window;    /* use SetWindowShapeMask */
  30. #endif
  31.      int        update;        /* current timeout index */
  32.      TPoint        mouse;        /* old mouse position */
  33.      TPoint        pupil[2];    /* pupil position */
  34.      Transform    t;
  35.      Transform    maskt;
  36.      XtIntervalId    interval_id;
  37. #ifdef SHAPE
  38.      Pixmap        shape_mask;    /* window shape */
  39. #endif
  40.    } EyesPart;
  41.  
  42. /* Full instance record declaration */
  43. typedef struct _EyesRec {
  44.    CorePart core;
  45.    EyesPart eyes;
  46.    } EyesRec;
  47.  
  48. /* New fields for the Eyes widget class record */
  49. typedef struct {int dummy;} EyesClassPart;
  50.  
  51. /* Full class record declaration. */
  52. typedef struct _EyesClassRec {
  53.    CoreClassPart core_class;
  54.    EyesClassPart eyes_class;
  55.    } EyesClassRec;
  56.  
  57. /* Class pointer. */
  58. extern EyesClassRec eyesClassRec;
  59.  
  60. #endif /* _EyesP_h */
  61.